package com.example.renshiguanli.mapper;

import com.example.renshiguanli.pojo.Salary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SalaryMapper {
//    查询所有
    @Select("select * from salary")
    List<Salary> findAllSalary();
//    根据id查询账单信息
    @Select("select * from salary where id=#{id}")
    Salary findById(Integer id);
}
